package org.jeecg.modules.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 公司常用发货双方表
 * @Author: jeecg-boot
 * @Date:   2024-04-12
 * @Version: V1.0
 */
@Data
@TableName("wlhy_company_both_sides")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wlhy_company_both_sides对象", description="公司常用发货双方表")
public class WlhyCompanyBothSides implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**单方姓名*/
	@Excel(name = "单方姓名", width = 15)
    @ApiModelProperty(value = "单方姓名")
    private String name;
	/**单方电话*/
	@Excel(name = "单方电话", width = 15)
    @ApiModelProperty(value = "单方电话")
    private String phone;
	/**单方证件号*/
	@Excel(name = "单方证件号", width = 15)
    @ApiModelProperty(value = "单方证件号")
    private String idNum;
	/**地区*/
	@Excel(name = "地区", width = 15)
    @ApiModelProperty(value = "地区")
    private String areaCode;
	/**地区名称*/
	@Excel(name = "地区名称", width = 15)
    @ApiModelProperty(value = "地区名称")
    private String areaName;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    private String detailAddr;
	/**经纬度*/
	@Excel(name = "经纬度", width = 15)
    @ApiModelProperty(value = "经纬度")
    private String lnglat;
	/**单方类型*/
	@Excel(name = "单方类型", width = 15, dicCode = "sides_type")
	@Dict(dicCode = "sides_type")
    @ApiModelProperty(value = "单方类型")
    private String sidesType;
	/**公司*/
	@Excel(name = "公司", width = 15, dictTable = "wlhy_company where version = '9999-09-09 00:00:00' and status = 1", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "wlhy_company where version = '9999-09-09 00:00:00' and status = 1", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "公司")
    private String companyId;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "row_status")
	@Dict(dicCode = "row_status")
    @ApiModelProperty(value = "状态")
    private String status;

}
